<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Login</title>
</head>
<body>

<h1>登录界面</h1>
<%--Post方式--%>
<form action="${pageContext.request.contextPath}/login" method="post">
    <p><label for="username">用户名:</label><input type="text" name="username"></p>
    <p><label for="password">密码:</label><input type="text" name="password"></p>
    <p><label for="hobbys">爱好:</label></p>
    <input type="checkbox" name="hobbys" value="唱歌">唱歌
    <input type="checkbox" name="hobbys" value="跳舞">跳舞
    <input type="checkbox" name="hobbys" value="打代码">打代码
    <p><input type="submit"></p>
</form>

</body>
</html>
